﻿<%@ Control Language="c#" AutoEventWireup="false" Inherits="Web.Control.Member.My.TFeedbackT" %>
<asp:Literal ID="litCount" Text="15" runat="server" Visible="false"/>
<div class="common">
	<div id="new_body">
		<div id="body_900">
			<div id="body_left"></div>
			<div id="body_main">
				<div class="title">
				    <h1><%=GetText("My Feedback") %></h1>					
				</div>							
				<div>
					<ul id="qa_nav" class="sort_sel">
						<li class="first" style="cursor:pointer"><span><a href="/my/tfeedbacks.htm">Feedback as a teacher</a></span></li>
						<li class="selATags" ><span>Feedback for other teachers</span></li>						                    
					</ul>
					<div class="clear"></div>
				</div>
				<div class="Center9001n">					
					<div class="center9001common">
						<div class="Center9001content">
							<div class="myhome_area">
								<div class="profile_aboutme">
									<div>								        
									<table width="100%" border="0" cellpadding="5" cellspacing="0" style="border-top:3px #ccc solid; border-bottom:1px #ddd solid; margin-bottom:20px">
										<tr>
										<td valign="top" bgcolor="#f5f5f5">My rating:<br />
										<span class="black16b"><img src="/Images/fbapp_level_<%=FBInfo.StarRate.ToString("N0") %>.gif" title="Rating: <%=FBInfo.StarRate.ToString("N2") %>" align="absmiddle" /> <%=FBInfo.StarRate%></span><br />
										<span class="grey11"><%=FBInfo.FBCount%> ratings</span></td>
										<td valign="top">Professional:<br />
										<span class="black16b"><%=FBInfo.PRate%></span></td>
										<td valign="top">Knowledge:<br />
										<span class="black16b"><%=FBInfo.KRate%></span></td>
										<td valign="top">Helpful:<br />
										<span class="black16b"><%=FBInfo.HRate%></span></td>
										<td valign="top">last 1 month ratings:<br />
										<span class="black16b"><%=FBInfo.StarRate1%></span></td>
										<td valign="top">last 3 months ratings:<br />
										<span class="black16b"><%=FBInfo.StarRate3%></span></td>
										</tr>
									</table>
									</div>
								    <div>								        
								        <asp:Repeater ID="rptFeedback" runat="server">
								        <ItemTemplate>
							                <div class="courses_comment_avatar Pic50">
								                <a class="photo_50" href='<%#WWWHost %>/<%#memberno%>T.htm' ><img src='<%#Avatar == ""?"/Images/No_pic.gif":Avatar %>' alt="<%#nickname%>" /></a>
								            </div>
										    <div class="courses_comment_Bacontent">
											    <div class="courses_comment_acontent">
											        <span class="grey12"><a href='<%#WWWHost %>/<%#memberno%>T.htm'><%#nickname%></a> feedback on  <%#((DateTime)Eval("HappenDate")).AddMinutes(TZSpan).ToString("MMM d, yyyy", cultureInfo)%></span>
											        <div class="margin5D"><%#Lx.Web.Common.UI.Globals.HtmlStrippedText(Eval("SToTDesc").ToString())%></div>
											        <div>
											            <%#Eval("TToSDesc").ToString()!=""
											                ?"<div><br /><span class='grey12'>"+GetText("<a href='/{0}T.htm'>{1}</a>left feedback on {2}",new string[]{Eval("TNO").ToString(),Eval("TNickname").ToString(),((DateTime)Eval("DescDate")).AddMinutes(TZSpan).ToString("MMM d, yyyy", cultureInfo)})+"</span><div class='margin5D'>"+Lx.Web.Common.UI.Globals.HtmlStrippedText(Eval("TToSDesc").ToString())+"</div></div>"
											                :""%>
											        </div>
											    </div>
											    <div class="courses_comment_delete">
											        <%#Eval("SessionType").ToString() == "1" 
											            ? "<strong><a href='"+WWWHost+"/course/"+Eval("CID")+"'>" + Lx.Web.Common.UI.Globals.HtmlStrippedText(Eval("CTitle").ToString()) + "</a></strong><br /><a href='"+WWWHost+"/lesson/"+Eval("LID")+"'>" + GetText("Lesson {0} {1}", new string[] { Eval("LChapter").ToString(), Lx.Web.Common.UI.Globals.HtmlStrippedText(Eval("LTitle").ToString()) }) + "</a>" 
											            : "<strong>One-on-one Tutoring</strong>"%>											        
											        <p class="grey11">
											            Professional: <%#Eval("Professional") %>
											            <br />Knowledgeable: <%#Eval("Knowledgeable") %>
											            <br />Helpful: <%#Eval("Helpful") %>
											        </p>
											    </div>
											    <div class="Clear"></div>
										    </div>
										    <div class="Clear"></div>
								        </ItemTemplate>
								        </asp:Repeater>								        
								    </div>
									<div class="clear"></div>
									<div id="divPage">
								    <%=CreatePageNav(RecordCount, PageSize, PageIndex, "",
									string.Format("<span class='page_none grey10'><a href='{0}/my/tfeedbackt.htm?p=$I$.htm'>{1}</a></span>&nbsp;", WWWHost,HttpUtility.UrlEncode(GetText("Prev"))),
									"",
									string.Format("<span class='page_none grey10'><a href='{0}/my/tfeedbackt.htm?p=$I$.htm'>{1}</a></span>&nbsp;", WWWHost,HttpUtility.UrlEncode(GetText("Next"))),
									string.Format("<span class='page_select'>{0}</span>&nbsp;",PageIndex),
									string.Format("<span class='page_none grey10'><a href='{0}/my/tfeedbackt.htm?p=$I$.htm'>$I$</a></span>&nbsp;", WWWHost))%>									
							        </div>									
								</div>											
							</div>
							<!--BLACKBOARD-->
						</div>
			  		</div>
					<div class="clear"></div>
		  		</div>				
	  		</div>
			<div id="body_right"></div>
			<div class="clear"></div>
  		</div>
		    <div id="body_900F"></div>
    </div>
</div>